import { createHashRouter } from "react-router-dom";
import App from "./App";

import Home from './pagaes/Home';
import About from './pagaes/About';
import Pgs from './pagaes/Pgs';
import Tubiao from './pagaes/Tubiao';
import Dingdan from './pagaes/Dingdan';


export const router = createHashRouter([
    {
        path: "/",
        element: <App />,
    },
    {
        path: "/home",
        element: <Home />,
    },
    {
        path: '/about',
        element: <About />
    },
    {
        path: '/pgs',
        element: <Pgs />,
        children: [
            {
                index: true,
                element: <Dingdan />
            },
            {
                path: 'tub',
                element: <Tubiao />
            }
        ]
    }
]);

export default router;